package cn.happy.favdish.application

import android.app.Application
import cn.happy.favdish.model.database.FavDishRepository
import cn.happy.favdish.model.database.FavDishRoomDatabase

/**
 * Author: created by ghappy on 2024/8/9 17:05
 *
 * Description:
 */
class FavDishApplication : Application() {
    private val database by lazy { FavDishRoomDatabase.getDatabase(this) }

    val repository by lazy{ FavDishRepository(database.favDishDao())}

}